<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<div class="info">

<form action="" method="post" >
<input type="hidden"  name="tid" value="<?php echo isset($item['tid'])?$item['tid']:'';?>" />
<table border="1" class="table">
  <tr><th colspan="2">添加房间</th></tr>
  <tr>
    <td width="30%">房间名:</td>
    <td width="70%" class="left"><input type="text" name="name" value="<?php echo isset($item['name'])?$item['name']:'';?>" /></td>
  </tr>
   <tr>
    <td>最大在玩数:</td>
    <td class="left"><select name="maxplayers">
    	<option value="0" <?php echo !isset($item['maxplayers']) ? 'selected' : '';?> >0</option>
        <option value="1" <?php echo isset($item['maxplayers']) && $item['maxplayers'] == 1 ? 'selected' : '';?> >1</option>
        <option value="2" <?php echo isset($item['maxplayers']) && $item['maxplayers'] == 2 ? 'selected' : '';?> >2</option>
        <option value="3" <?php echo isset($item['maxplayers']) && $item['maxplayers'] == 3 ? 'selected' : '';?> >3</option>
        <option value="4" <?php echo isset($item['maxplayers']) && $item['maxplayers'] == 4 ? 'selected' : '';?> >4</option>
        <option value="5" <?php echo isset($item['maxplayers']) && $item['maxplayers'] == 5 ? 'selected' : '';?> >5</option>
        <option value="6" <?php echo isset($item['maxplayers']) && $item['maxplayers'] == 6 ? 'selected' : '';?> >6</option>
        </select></td>

  </tr>
  <tr>
    <td>酒类:</td>
    <td class="left"><input type="text" name="drunk_type" value="<?php echo isset($item['drunk_type'])?$item['drunk_type']:'';?>" /></td>
  </tr>
  
  <tr>
    <td>醉酒度:</td>
    <td class="left"><input type="text" name="drunk_degree" value="<?php echo isset($item['drunk_degree'])?$item['drunk_degree']:'';?>" /></td>
  </tr>
  
  <tr>
    <td>进场携带数:</td>
    <td class="left"><input type="text" name="stake" value="<?php echo isset($item['stake'])?$item['stake']:'';?>" /></td>
  </tr>
  
  <tr>
    <td>房间场次:</td>
    <td class="left">
    	<select name="level">
    	<option value="1" <?php echo isset($item['level']) && $item['level'] == 1 ? 'selected' : '';?> >普通</option>
        <option value="2" <?php echo isset($item['level']) && $item['level'] == 2 ? 'selected' : '';?> >中级</option>
        <option value="3" <?php echo isset($item['level']) && $item['level'] == 3 ? 'selected' : '';?> >高级</option>
        </select>
    </td>
  </tr>
  <tr>
    <td>房间开关:</td>
    <td class="left">
    	<select name="switch">
    	<option value="1" <?php echo isset($item['switch']) && $item['switch'] == 1 ? 'selected' : '';?> >开</option>
    	<option value="0" <?php echo isset($item['switch']) && $item['switch'] == 0 ? 'selected' : '';?> >关</option>
        </select>
    </td>
  </tr>

  <tr>
   <td colspan="2">
   	<input type="hidden" name="form_id" value="<?php echo time() ?>" />
   	<input type="submit" value="保存" /> 
   	</td>
   </tr>
</table>
</form>
</div>


</body>
</html>